package model.admin;
import java.util.*;
import vo.*;
import myutil.Connect;
import java.sql.*;
public class CreateMenuMo {
public ArrayList<BatchDetailsVo> createmenu() throws Exception{
	
		ArrayList<BatchDetailsVo> batch_list=new ArrayList<BatchDetailsVo>();
		Connect c=new Connect();
		ResultSet rs=c.getResult("select * from batch_details");
		while(rs.next()){
			BatchDetailsVo single_object=new BatchDetailsVo();
			single_object.setBatch_id(rs.getInt("batch_id"));
			single_object.setBatch_name(rs.getString("batch_name"));
			batch_list.add(single_object);
			//System.out.println("siva "+single_object.getBatch_name());
			
		}
		return batch_list;
		
	
	
}
}
